<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:74:"D:\Development\wkyx\public/../application/index\view\together\commonp.html";i:1535112605;s:71:"D:\Development\wkyx\public/../application/index\view\common\header.html";i:1534900110;s:71:"D:\Development\wkyx\public/../application/index\view\common\footer.html";i:1532576206;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
	<link rel="stylesheet" type="text/css" href="<?php echo STATIC_PATH; ?>/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo STATIC_PATH; ?>/css/index.css">
<link rel="stylesheet" type="text/css" href="<?php echo STATIC_PATH; ?>/css/font.css">
<script type="text/javascript" src = "<?php echo STATIC_PATH; ?>/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src = "<?php echo STATIC_PATH; ?>/js/bootstrap.min.js"></script>
<script type="text/javascript" src = "<?php echo STATIC_PATH; ?>/js/index.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>拼场</title>
</head>
<body>
	<div class="container margin-top">
		<div class="row">
			<div class="col-md-offset-1 col-md-10 col-xs-10">
				<img src="<?php echo STATIC_PATH; ?>/image/nyx.jpg" alt="" width="100%">
			</div>
			<div class="col-md-1 col-xs-2 margin">
				<a href="<?php echo url('Index/index'); ?>">返回</a>
			</div>
		</div>
		<div class="row margin-top">
			<div class="col-md-offset-1 col-md-10 col-xs-12">
				<p class="text-center">
					<strong>我发布的信息</strong>
				</p>
				<hr style="border:0;background-color:#ff0000;height:1px;margin: 5px">
			</div>
		</div>
		<div class="row margin-top padding-bottom">
			<div class="col-md-offset-2 col-md-8 col-xs-12">
				<?php if(is_array($common) || $common instanceof \think\Collection || $common instanceof \think\Paginator): $i = 0; $__LIST__ = $common;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;if($list['type']==0): ?>
				    <div class="panel panel-default">
	                	<div class="row margin-top margin-left">
							<div class="col-xs-7 col-ms-7 margin-top"> 
								<p>参与人:<?php echo $list['now']; ?>/<?php echo $list['max']; ?> </p>
								<p>时长:<?php echo $list['time']; ?></p>
								<p>时间:<?php echo $list['begin']; ?></p> 
								<p>QQ群:<?php echo $list['qq']; ?></p>
							</div>
							<div class="col-xs-4 col-ms-4 margin">
								<p class="text-right">
									<a href="<?php echo url('Together/delete'); ?>?id=<?php echo $list['id']; ?>">
										<button class="btn-block btn-xs btn-info margin-top">
											删除拼场
										</button>
									</a>
									<a data-toggle="collapse" data-parent="#accordion" href="#collapse<?php echo $list['id']; ?>">	
										<button class="btn-block btn-xs btn-info margin-top">
											拼场人及备注
										</button>
									</a>
									<button class="btn-block btn-xs btn-info margin-top" onclick="copy_cp(<?php echo $list['id']; ?>)">
										复制链接
									</button>
								</p>
							</div>
						</div>
				        <div id="collapse<?php echo $list['id']; ?>" class="panel-collapse collapse">
				            <div class="panel-body">
				                <?php if(is_array($people) || $people instanceof \think\Collection || $people instanceof \think\Paginator): $i = 0; $__LIST__ = $people;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$p): $mod = ($i % 2 );++$i;if($p['cid']==$list['id']): ?>
					                	<p>
					                			<?php echo $p['xm']; ?>/
					                		<span id="wx<?php echo $p['id']; ?>">
					                			<?php echo $p['wx']; ?>
					                		</span>
					                		/
					                		<span id="qq<?php echo $p['id']; ?>">
					                			<?php echo $p['qq']; ?>
					                		</span>			                	
						                	<button class="btn-xs btn-info" onclick="copy_wx(<?php echo $p['id']; ?>)">
						                		复制微信
						                	</button>
						                	<button class="btn-xs btn-info" onclick="copy_qq(<?php echo $p['id']; ?>)">
						                		复制qq
						                	</button>
						                </p>
						            <?php endif; endforeach; endif; else: echo "" ;endif; ?>
				                <br>
				                备注:<?php echo $list['tips']; ?>
				            </div>
				        </div>
				    </div>
				    <?php else: ?>
				    <div class="panel panel-default">
	                	<div class="row margin-top margin-left">
							<div class="col-xs-7 col-ms-7 margin-top"> 
								<p>参与人:<?php echo $list['now']; ?>/<?php echo $list['max']; ?>（教学） </p>
								<p>时长:<?php echo $list['time']; ?></p>
								<p>时间:<?php echo $list['begin']; ?></p> 
								<p>QQ群:<?php echo $list['qq']; ?></p>
							</div>
							<div class="col-xs-4 col-ms-4 margin">
								<p class="text-right">
									<a data-toggle="collapse" data-parent="#accordion" href="#collapse<?php echo $list['id']; ?>">	
										<button class="btn-block btn-xs btn-info margin-top">
											人员及训练内容
										</button>
									</a>
									<button class="btn-block btn-xs btn-info margin-top" onclick="copy_cp(<?php echo $list['id']; ?>)">
										复制链接
									</button>
								</p>
							</div>
						</div>
				        <div id="collapse<?php echo $list['id']; ?>" class="panel-collapse collapse">
				            <div class="panel-body">
				                <?php if(is_array($people) || $people instanceof \think\Collection || $people instanceof \think\Paginator): $i = 0; $__LIST__ = $people;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$p): $mod = ($i % 2 );++$i;if($p['cid']==$list['id']): ?>
					                	<p>
					                			<?php echo $p['xm']; ?>/
					                		<span id="wx<?php echo $p['id']; ?>">
					                			<?php echo $p['wx']; ?>
					                		</span>
					                		/
					                		<span id="qq<?php echo $p['id']; ?>">
					                			<?php echo $p['qq']; ?>
					                		</span>			                	
						                	<button class="btn-xs btn-info" onclick="copy_wx(<?php echo $p['id']; ?>)">
						                		复制微信
						                	</button>
						                	<button class="btn-xs btn-info" onclick="copy_qq(<?php echo $p['id']; ?>)">
						                		复制qq
						                	</button>
						                </p>
						            <?php endif; endforeach; endif; else: echo "" ;endif; ?>
				                <br>
				                训练内容:<?php echo $list['tips']; ?>
				            </div>
				        </div>
				    </div>
				    <?php endif; endforeach; endif; else: echo "" ;endif; ?>
				</div>
			</div>
		</div>
	</div>
	<nav class="navbar navbar-fixed-bottom adjust-footer">
    <div class="container">
        <p class="text-center text-primary">
            Copyright © 北京化工大学吾酷羽协
        </p>
    </div>
</nav>


</body>
</html>